package juc.synced;

public class A {
     Long  num = Long.valueOf(0);

    public Long getNum(){
        return num;
    }

    public  void increase(){
        B b = new B();
        synchronized (b){
            num = b.increase();
        }

    }
}
